import React, { Component } from "react";
import { Switch, Route } from "react-router-dom";
import Login from "./pages/login/login";
import Admin from "./pages/admin/admin";
class App extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }
  render() {
    return (
      <>
      <Switch>
        <Route path="/login" component={Login} />
        <Route path="/" component={Admin} />
        </Switch>
      </>
    );
  }
}

export default App;
